package com.xquant.system.api;

import com.xquant.common.core.constant.ServiceNameConstants;
import com.xquant.common.core.web.domain.AjaxResult;
import com.xquant.system.api.factory.RemoteDailyPriceFallbackFactory;
import com.xquant.system.api.factory.RemoteDurationFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(contextId = "durationService" , value = ServiceNameConstants.PRICING_SERVICE , fallbackFactory = RemoteDurationFallbackFactory.class)
public interface RemoteDurationService {

    @RequestMapping(value = "/duration/remoteInsertDuration.action")
    public AjaxResult insertDuration(@RequestParam Map<String, Object> param);

}
